import { BlackType, DirectionType } from ".";
import { moveBlack } from "./moveBlack";
import { directionMap } from "./tank";

export class MoveDirectionBlack extends moveBlack {
  constructor({
    x,
    y,
    width,
    height,
    targter,
    speed,
    direction,
    isRadiusPoint,
  }: BlackType & { speed: number; direction: DirectionType }) {
    super({ x, y, width, height, targter, speed, direction, isRadiusPoint });
    this.targter.rotation = directionMap[direction];
  }
}
